package com.neuedu.nep.model;

import java.io.Serializable;

/**
 * aqi_feedback
 * @author 
 */
public class AqiFeedback implements Serializable {
    /**
     * 空气质量公众监督反馈信息编号
     */
    private Integer afId;

    /**
     * 所属公众监督员编号（即手机号码）
     */
    private String telId;

    /**
     * 反馈信息所在省区域编号
     */
    private Integer provinceId;

    /**
     * 反馈信息所在市区域编号
     */
    private Integer cityId;

    /**
     * 反馈信息所在区域详细地址
     */
    private String address;

    /**
     * 反馈信息描述
     */
    private String information;

    /**
     * 反馈者对空气质量指数级别的预估等级
     */
    private Integer estimatedGrade;

    /**
     * 反馈日期
     */
    private String afDate;

    /**
     * 反馈时间
     */
    private String afTime;

    /**
     * 指派网格员编号
     */
    private Integer gmId;

    /**
     * 指派日期
     */
    private String assignDate;

    /**
     * 指派时间
     */
    private String assignTime;

    /**
     * 信息状态: 0:未指派; 1:已指派; 2:已确认
     */
    private Integer state;

    /**
     * 备注
     */
    private String remarks;

    private static final long serialVersionUID = 1L;

    public Integer getAfId() {
        return afId;
    }

    public void setAfId(Integer afId) {
        this.afId = afId;
    }

    public String getTelId() {
        return telId;
    }

    public void setTelId(String telId) {
        this.telId = telId;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public Integer getEstimatedGrade() {
        return estimatedGrade;
    }

    public void setEstimatedGrade(Integer estimatedGrade) {
        this.estimatedGrade = estimatedGrade;
    }

    public String getAfDate() {
        return afDate;
    }

    public void setAfDate(String afDate) {
        this.afDate = afDate;
    }

    public String getAfTime() {
        return afTime;
    }

    public void setAfTime(String afTime) {
        this.afTime = afTime;
    }

    public Integer getGmId() {
        return gmId;
    }

    public void setGmId(Integer gmId) {
        this.gmId = gmId;
    }

    public String getAssignDate() {
        return assignDate;
    }

    public void setAssignDate(String assignDate) {
        this.assignDate = assignDate;
    }

    public String getAssignTime() {
        return assignTime;
    }

    public void setAssignTime(String assignTime) {
        this.assignTime = assignTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AqiFeedback other = (AqiFeedback) that;
        return (this.getAfId() == null ? other.getAfId() == null : this.getAfId().equals(other.getAfId()))
            && (this.getTelId() == null ? other.getTelId() == null : this.getTelId().equals(other.getTelId()))
            && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId()))
            && (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getInformation() == null ? other.getInformation() == null : this.getInformation().equals(other.getInformation()))
            && (this.getEstimatedGrade() == null ? other.getEstimatedGrade() == null : this.getEstimatedGrade().equals(other.getEstimatedGrade()))
            && (this.getAfDate() == null ? other.getAfDate() == null : this.getAfDate().equals(other.getAfDate()))
            && (this.getAfTime() == null ? other.getAfTime() == null : this.getAfTime().equals(other.getAfTime()))
            && (this.getGmId() == null ? other.getGmId() == null : this.getGmId().equals(other.getGmId()))
            && (this.getAssignDate() == null ? other.getAssignDate() == null : this.getAssignDate().equals(other.getAssignDate()))
            && (this.getAssignTime() == null ? other.getAssignTime() == null : this.getAssignTime().equals(other.getAssignTime()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAfId() == null) ? 0 : getAfId().hashCode());
        result = prime * result + ((getTelId() == null) ? 0 : getTelId().hashCode());
        result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode());
        result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getInformation() == null) ? 0 : getInformation().hashCode());
        result = prime * result + ((getEstimatedGrade() == null) ? 0 : getEstimatedGrade().hashCode());
        result = prime * result + ((getAfDate() == null) ? 0 : getAfDate().hashCode());
        result = prime * result + ((getAfTime() == null) ? 0 : getAfTime().hashCode());
        result = prime * result + ((getGmId() == null) ? 0 : getGmId().hashCode());
        result = prime * result + ((getAssignDate() == null) ? 0 : getAssignDate().hashCode());
        result = prime * result + ((getAssignTime() == null) ? 0 : getAssignTime().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", afId=").append(afId);
        sb.append(", telId=").append(telId);
        sb.append(", provinceId=").append(provinceId);
        sb.append(", cityId=").append(cityId);
        sb.append(", address=").append(address);
        sb.append(", information=").append(information);
        sb.append(", estimatedGrade=").append(estimatedGrade);
        sb.append(", afDate=").append(afDate);
        sb.append(", afTime=").append(afTime);
        sb.append(", gmId=").append(gmId);
        sb.append(", assignDate=").append(assignDate);
        sb.append(", assignTime=").append(assignTime);
        sb.append(", state=").append(state);
        sb.append(", remarks=").append(remarks);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}